/************************************************************************
;File:				Data Define Demo Code
;Author:			SZ_SA1
;Date:				2013/1/10
;Version:			V10
;Description:	define Data at flash address
;Test IC:			SN32F707
;Test Way:		Watch Keil c memory
*************************************************************************/
#include	<SN32F280.h>
#include	<SN32F200_Def.h>
#include "KB_API_Tab.h"
#include "KB_API.h"
#include 	"..\USB\usbdesc.h"
#include 	"..\Project\UserSet.h"

#define		LED_MODE				0x05
#define		LED_COLOR_R1		0x00
#define		LED_COLOR_G1		0xFF
#define		LED_COLOR_B1		0x00U
#define		LED_COLOR_R2		0x00
#define		LED_COLOR_G2		0x00
#define		LED_COLOR_B2		0xFFU
#define		LED_LIGHT				0xFF
#define		LED_SPEED				0x10U
#define		LED_DIRECTION		0x01

#define		LED_CHECKSUM_L	0xAA
#define		LED_CHECKSUM_H	0x55

//------------------------------------------------------------------//
//     Area A                         Total:  64*2 Bytes :  2 Pages //
//------------------------------------------------------------------//
//     Description: Device Basic information area 							    //
//------------------------------------------------------------------//
const uint32_t API_INFOR_TAB[API_INFO_LEN] __attribute__((at(API_INFO_ADDR))) = 	//128 Bytes 2 Pages
{
	(APP_MACRO_PAGES<<8|0x40),		//Macro Size 128 pages, Device total size= 0x40 KB (64KB)
	(USB_PID<<16|USB_VID),				//** PID 7A04, VID 0C45
	(0xFFFF0000|USB_REV)					//** Gaming KB (0xFFFF) FW Version V2.0
};
//----The End of Area A --------------------------------------------//


//------------------------------------------------------------------//
//     Area B          		 					 Total:  64*1 Bytes :  1 Pages  //
//------------------------------------------------------------------//
//     Description:  Game profile definition area 				    		  //
//------------------------------------------------------------------//
const uint32_t API_GM_TAB[0x100] __attribute__((at(API_GM_ADDR))) = //64 Bytes
{
	0,0x020000,0x00000002,0,0,0,0,0,
	0,0,0,0,0,0,0,0x55AA0000
};
//----The End of Area B --------------------------------------------//


//==================================================================//

//------------------------------------------------------------------//
//     Area C                         Total:  64*10 Bytes :  10 Pages //
//------------------------------------------------------------------//
//     Description: Key Definition area 												    //
//------------------------------------------------------------------//
const uint32_t API_KEY_TAB[0x100] __attribute__((at(API_KEY_ADDR))) = //576 Bytes 9 Pages
{
	0,
};

//----The End of Area C --------------------------------------------//
//==================================================================//


//------------------------------------------------------------------//
//     Area D          		  Total:  1088 Bytes + 64Bytes :  18 Pages//
//------------------------------------------------------------------//
//     Description: LED Effect 1088+64 bytes                        //
//------------------------------------------------------------------//
const uint32_t API_LED_TAB[0x100] __attribute__((at(API_LED_ADDR))) = //64*7effect pages + 576 Bytes= 1024
{
	0,
};

const uint32_t API_LED_CON_TAB[0x100] __attribute__((at(API_LED_CON_ADDR))) = //64 Bytes
{
	0,
};
//----The End of Area D --------------------------------------------//
//==================================================================//


//------------------------------------------------------------------//
//     Area E          		 					 Total:  64*48 Bytes : 48 Pages //
//------------------------------------------------------------------//
//     Description:  Macro definition area	(default size= 3K)		  //
//------------------------------------------------------------------//
const uint32_t API_MACRO_TAB[API_MACRO_LEN] __attribute__((at(API_MACRO_ADDR))) = 
{
	0,
};

//------------------------------------------------------------------//
//     Area F                         Total:  64*10 Bytes :  10 Pages //
//------------------------------------------------------------------//
//     Description: Key Definition area 												    //
//------------------------------------------------------------------//
const uint32_t API_FN_KEY_TAB[0x100] __attribute__((at(API_FN_KEY_ADDR))) = //576 Bytes 9 Pages
{
	0,
};

//----The End of Area F --------------------------------------------//
//==================================================================//

//************************************************************************
